<div class="content">
     <h2 class="api-name">引入文件</h2>
     <textarea name="code" class="js"> 
		<script type="text/javascript" src="simpleCore.js"></script>
	 </textarea>
	 <h2 class="api-name">使用Core模块</h2>
	 <div class="part">
	 	<h3 class="api-guide">Simple.require(/*string||array*/name,/*function*/callback,/*string*/path,/*bool*/isOpenMinify)</h3>
	 	<p class="desc">
	 		<strong>概述：</strong>
	 		SimpleUI的模块加载器，负责加载define和declare声明的内部资源或者给定路径的外部资源
	 		加载顺序：首先加载内部资源，如果内部没有声明该模块，则根据模块名加载外部资源。多个require模块会放入队列，依次执行。
	 		需要注意：同一模块名不同路径的资源不会被重复加载
	 	</p>
	 	<p>加载外部的bird.js资源</p>
	 	<textarea name="code" class="js"> 
			Simple.require("bird",function(){
				Simple.log("bird loaded");
			});
			//组合的路径格式为<script type="text/javascript" src="bird.js"></script>
	 	</textarea>
	 	<p>给定路径的加载</p>
	 	<textarea name="code" class="js"> 
			Simple.require("bird",function(){
				Simple.log("bird loaded");
			},"http://simple.org/");
			//组合的路径格式为<script type="text/javascript" src="http://simple.org/bird.js"></script>
	 	</textarea>
	 	<p>加载多个JS文件</p>
	 	<textarea name="code" class="js"> 
			Simple.require(["bird","animal"],function(){
				Simple.log("bird loaded,animal loaded");
			},"http://simple.org/");
			//组合的路径格式为<script type="text/javascript" src="http://simple.org/bird.js"></script>
			//<script type="text/javascript" src="http://simple.org/animal.js"></script>
	 	</textarea>
	 	<p>启用minify功能(用于压缩JS和减少请求数目，需要服务器部署minify)</p>
	 	<textarea name="code" class="js"> 
			Simple.require(["bird","animal"],function(){
				Simple.log("bird loaded,animal loaded");
			},"http://simple.org/",true);
			//组合的路径格式为<script type="text/javascript" src="http://simple.org/bird.js,animal.js"></script>
	 	</textarea>
	 	<p>多个加载模块</p>
	 	<textarea name="code" class="js"> 
			Simple.require(["bird","animal"],function(){
				Simple.log("bird loaded,animal loaded");
			},"http://simple.org/",true);
			//组合的路径格式为<script type="text/javascript" src="http://simple.org/bird.js,animal.js"></script>
			
			Simple.require(["bird","test"],function(){
				Simple.log("test loaded");
			});
			//bird已经被加载不会重复加载。（同一模块名不同路径的资源不会被重复加载）
			//组合的路径格式为<script type="text/javascript" src="test.js"></script>
	 	</textarea>
	 </div>
</div>

